package com.local.web.service;

import com.local.common.util.ResultUtil;
import com.local.user.pojo.User;
import com.local.user.pojo.UserLoginRequestParam;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpSession;

public interface UserService {

    /**
     * 通过用户名和密码查询用户，用于前台登录
     * @param requestParam
     * @param session
     * @return
     */
    public User getByLoginNamePassword(UserLoginRequestParam requestParam, HttpSession session);

    /**
     * 更新用户地址
     * @param user
     * @return
     */
    public ResultUtil updateAddress(User user);
}
